import baseUrl from '@/api/env.js'

export default {
    // 获取学校信息-无租户
    getOrgSchoolNoTenantInfo:(id)=>{
        return baseUrl+`/school/school/get/noTenantId/${id}`;
    },
    // 获取学校列表-无租户
    getOrgSchoolNoTenantId: baseUrl + '/school/school/orgSchoolList',

    // 获取食堂列表-无租户
    getCanteenNoTenantId: baseUrl + '/school/canteen/list/noTenantId',

    // 获取食堂-无租户
    getCanteenNoTenantInfo: baseUrl + '/school/canteen/getCanteenNoTenantIdInfo',

    // 获取配餐单位列表-无租户
    getOrgCaterNoTenantId: baseUrl + '/school/cater/list/noTenantId',

    // 获取配餐单位信息-无租户
    getOrgCaterNoTenantIdInfo:(id) =>{
        return baseUrl + `/school/cater/getOrgCaterNoTenantId/${id}`;
    },

    // 获取库存信息
    getStockLogNoTenantId: baseUrl + '/purchase/stockLog/page/noTenantId',

    // 获取从业人员列表-无租户
    getOrgEmployedNoTenantId: baseUrl + '/school/employed/page/noTenantId',

    // 获取学校详细信息
    schoolQuery:(id)=>{
        return baseUrl+`/school/school/getOrgSchoolNoTenantId/${id}`;
    },

    // 获取食堂详细信息
    canteenQuery:(id)=>{
        return baseUrl+`/school/canteen/get/${id}`;
    },

    // 获取配餐单位详细信息
    caterQuery:(id)=>{
        return baseUrl+`/school/cater/get/${id}`;
    },

    // 获取地区信息列表
    getAreaListByParentCode:(parentCode)=>{
        return baseUrl+'/system/area/find/list/by/parentCode?parentCode=' + parentCode;
    },

}
